<!doctype html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
        <title>{$title|default=WEB_TITLE}</title>
        <link rel="stylesheet" href="/static/css/mdui.min.css"/>
        <link rel="shortcut icon" type="image/ico" href="/static/images/favicon.ico">
        <!--link rel="stylesheet" href="/static/css/Rclick.css"-->
        <link rel="stylesheet" href="/editormd/css/editormd.css" />
        <script src="/static/js/jquery.min.js"></script>
    </head>
    <body class="mdui-appbar-with-toolbar mdui-container mdui-color-grey-100">
        
        <div class="mdui-appbar mdui-shadow-0 mdui-appbar-fixed">
            <div class="mdui-toolbar mdui-color-blue">
                <a href="javascript:inst.toggle();" class="mdui-btn mdui-btn-icon"><i class="mdui-icon material-icons">menu</i></a>
                <a href="/" class="mdui-typo-title">{$title|default=WEB_TITLE}</a>
                <div class="mdui-toolbar-spacer"></div>
{eq name='status' value='-1'}
                <a href="/login" class="mdui-btn">登录</a>
                <a href="/register" class="mdui-btn">注册</a>
{else/}
                <a href="/setting" class="mdui-btn">设置</a>
                <a href="/user/{$uid}" class="mdui-btn">{$username}</a>
                <a href="/api/exit.php/u{$uid}" class="mdui-btn">退出</a>
{/eq}
            </div>
        </div>
        <div class="mdui-drawer mdui-color-blue-300" id="main-drawer">
            <ul class="mdui-list">
                <a href="/" class="mdui-list-item mdui-ripple">首页</a>
{eq name='$status|is_admin' value='true'}
                <li class="mdui-subheader">工具</li>
                <a href="/qq" class="mdui-list-item mdui-ripple">QQ</a>
{/eq}
            </ul>
        </div>
